﻿<navigation:Page x:Class="infiniteMarioDotNet.PageTest" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="682"
           Title="PageTest Page" KeyDown="LayoutRoot_KeyDown" KeyUp="LayoutRoot_KeyUp" Loaded="UserControl_Loaded" MouseLeftButtonDown="LayoutRoot_MouseLeftButtonDown">


    <StackPanel Orientation="Vertical" VerticalAlignment="Top">
        <TextBlock FontSize="14" Margin="0,10,0,0" TextWrapping="Wrap">Click the map, then use the arrows to navigate to the first level. Then hit 'S' to select the level.</TextBlock>
        <!--<MediaElement x:Name="test" AutoPlay="False" Source="/infiniteMarioDotNet;component/Assets/sound/breakblock.wma" MediaOpened="test_MediaOpened" MediaFailed="test_MediaFailed" />
            <Button Click="Button_Click_5" Content="sound!"/>-->


        <!--<Button Content="test Animate Mario" Click="Button_Click"/>
            <Button Content="testMoveMario" Click="Button_Click_1"/>
            <Button Content="test render blackout" Click="Button_Click_2"/>
            <Button Content="test background tiles" Click="Button_Click_4"/>
            <Button Content="init art" Click="clickInitArt"/>
            <Button Content="start mario component" Click="Button_Click_3"/>-->

        <!--<TextBlock FontSize="14" TextWrapping="Wrap">This is the most stable, advanced build. </TextBlock>
            <Image x:Name="imgTest" Source="/infiniteMarioDotNet;component/Assets/Images/enemysheet033.png" ImageFailed="imgTest_ImageFailed" Width="16" Height="32" HorizontalAlignment="Left" />-->



        <!--<Button x:Name="btnFlip" Content="flip the enemy" Click="btnFlip_Click"/>-->
        <Button x:Name="btnRenderBG" Content="render background" Click="btnRenderBG_Click"/>
        <Button x:Name="btnLeft" Content="&lt;--" Click="btnLeft_Click" Visibility="Collapsed"/>
        <Button x:Name="btnRight" Content="-->" Click="btnRight_Click" Visibility="Collapsed"/>
        <Button x:Name="btnClear" Content="clearTest" Click="btnClear_Click" />

        <Button x:Name="btnStartMario" Content="start Mario" Click="btnStartMario_Click" />
        <Button x:Name="btnStartBGRenderTest" Content="bg render test" Click="btnStartBGRenderTest_Click" />




        <Canvas x:Name="LayoutRoot" Background="White" KeyDown="LayoutRoot_KeyDown" KeyUp="LayoutRoot_KeyUp" 
                MouseLeftButtonDown="LayoutRoot_MouseLeftButtonDown" Height="240" Width="320" Grid.RowSpan="2"/>


        <StackPanel Orientation="Horizontal"  Margin="0,15,0,0" >
            <Canvas x:Name="canvasBG" Background="White" KeyDown="LayoutRoot_KeyDown" KeyUp="LayoutRoot_KeyUp" 
                MouseLeftButtonDown="LayoutRoot_MouseLeftButtonDown" Height="240" Width="320" Grid.RowSpan="2"/>

            <StackPanel>
                <Button x:Name="btnTryBGLayout" Click="btnTryBGLayout_Click" Content="try level layout"/>
                <RepeatButton  Delay="50" Interval="50"  x:Name="btnLeft2" Content="&lt;--" Click="btnLeft2_Click_FG" />
                <RepeatButton  Delay="50" Interval="50"  x:Name="btnRight2" Content="--&gt;" Click="btnRight2_Click_FG"/>
                <Button x:Name="btnTryDraw" Click="btnTryDrawClick" Content="try draw"/>
                
            </StackPanel>
        </StackPanel>


    </StackPanel>

</navigation:Page>


<!--<Image Source="/infiniteMarioDotNet;component/Assets/Images/firemariosheet.png" />-->
<!--<Image x:Name="imgTest" Source="/infiniteMarioDotNet;component/Assets/Images/enemysheet033.png" ImageFailed="imgTest_ImageFailed" />-->


